package mastercard.assets.jpa;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the tbl_forma_salida database table.
 * 
 */
@Entity
@Table(name="tbl_forma_salida")
public class TblFormaSalida implements Serializable {
	private static final long serialVersionUID = 1L;
	private int cveSalida;
	private String descripcion;
	private Timestamp fechaAlta;
	private String nombre;
	private byte status;
	private List<TblFormaAlerta> tblFormaAlertas;
	private TblForma tblForma;
	private List<TblTareaFlujo> tblTareaFlujos;

    public TblFormaSalida() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="cve_salida", unique=true, nullable=false)
	public int getCveSalida() {
		return this.cveSalida;
	}

	public void setCveSalida(int cveSalida) {
		this.cveSalida = cveSalida;
	}


	@Column(nullable=false, length=2048)
	public String getDescripcion() {
		return this.descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}


	@Column(name="fecha_alta", nullable=false)
	public Timestamp getFechaAlta() {
		return this.fechaAlta;
	}

	public void setFechaAlta(Timestamp fechaAlta) {
		this.fechaAlta = fechaAlta;
	}


	@Column(nullable=false, length=255)
	public String getNombre() {
		return this.nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}


	@Column(nullable=false)
	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}


	//bi-directional many-to-one association to TblFormaAlerta
	@OneToMany(mappedBy="tblFormaSalida")
	public List<TblFormaAlerta> getTblFormaAlertas() {
		return this.tblFormaAlertas;
	}

	public void setTblFormaAlertas(List<TblFormaAlerta> tblFormaAlertas) {
		this.tblFormaAlertas = tblFormaAlertas;
	}
	

	//bi-directional many-to-one association to TblForma
    @ManyToOne
	@JoinColumn(name="cve_forma", nullable=false)
	public TblForma getTblForma() {
		return this.tblForma;
	}

	public void setTblForma(TblForma tblForma) {
		this.tblForma = tblForma;
	}
	

	//bi-directional many-to-one association to TblTareaFlujo
	@OneToMany(mappedBy="tblFormaSalida")
	public List<TblTareaFlujo> getTblTareaFlujos() {
		return this.tblTareaFlujos;
	}

	public void setTblTareaFlujos(List<TblTareaFlujo> tblTareaFlujos) {
		this.tblTareaFlujos = tblTareaFlujos;
	}
	
}